<div class="zones view">
<h2><?php echo __('Zone'); ?></h2>
	<dl>
		<dt><?php echo __('Id'); ?></dt>
		<dd>
			<?php echo h($zone['Zone']['id']); ?>
			&nbsp;
		</dd>
		<dt><?php echo __('Name'); ?></dt>
		<dd>
			<?php echo h($zone['Zone']['name']); ?>
			&nbsp;
		</dd>
		<dt><?php echo __('Region'); ?></dt>
		<dd>
			<?php echo $this->Html->link($zone['Region']['name'], array('controller' => 'regions', 'action' => 'view', $zone['Region']['id'])); ?>
			&nbsp;
		</dd>
		<dt><?php echo __('Zone'); ?></dt>
		<dd>
			<?php echo $this->Html->link($zone['Zone']['name'], array('controller' => 'zones', 'action' => 'view', $zone['Zone']['id'])); ?>
			&nbsp;
		</dd>
		<dt><?php echo __('Center Latitude'); ?></dt>
		<dd>
			<?php echo h($zone['Zone']['center_latitude']); ?>
			&nbsp;
		</dd>
		<dt><?php echo __('Center Longitude'); ?></dt>
		<dd>
			<?php echo h($zone['Zone']['center_longitude']); ?>
			&nbsp;
		</dd>
		<dt><?php echo __('Nb Visits'); ?></dt>
		<dd>
			<?php echo h($zone['Zone']['nb_visits']); ?>
			&nbsp;
		</dd>
		<dt><?php echo __('Created'); ?></dt>
		<dd>
			<?php echo h($zone['Zone']['created']); ?>
			&nbsp;
		</dd>
		<dt><?php echo __('Modified'); ?></dt>
		<dd>
			<?php echo h($zone['Zone']['modified']); ?>
			&nbsp;
		</dd>
		<dt><?php echo __('Types Zone'); ?></dt>
		<dd>
			<?php echo $this->Html->link($zone['TypesZone']['name'], array('controller' => 'types_zones', 'action' => 'view', $zone['TypesZone']['id'])); ?>
			&nbsp;
		</dd>
	</dl>
</div>
<div class="actions">
	<h3><?php echo __('Actions'); ?></h3>
	<ul>
		<li><?php echo $this->Html->link(__('Edit Zone'), array('action' => 'edit', $zone['Zone']['id'])); ?> </li>
		<li><?php echo $this->Form->postLink(__('Delete Zone'), array('action' => 'delete', $zone['Zone']['id']), null, __('Are you sure you want to delete # %s?', $zone['Zone']['id'])); ?> </li>
		<li><?php echo $this->Html->link(__('List Zones'), array('action' => 'index')); ?> </li>
		<li><?php echo $this->Html->link(__('New Zone'), array('action' => 'add')); ?> </li>
		<li><?php echo $this->Html->link(__('List Regions'), array('controller' => 'regions', 'action' => 'index')); ?> </li>
		<li><?php echo $this->Html->link(__('New Region'), array('controller' => 'regions', 'action' => 'add')); ?> </li>
		<li><?php echo $this->Html->link(__('List Zones'), array('controller' => 'zones', 'action' => 'index')); ?> </li>
		<li><?php echo $this->Html->link(__('New Zone'), array('controller' => 'zones', 'action' => 'add')); ?> </li>
		<li><?php echo $this->Html->link(__('List Types Zones'), array('controller' => 'types_zones', 'action' => 'index')); ?> </li>
		<li><?php echo $this->Html->link(__('New Types Zone'), array('controller' => 'types_zones', 'action' => 'add')); ?> </li>
		<li><?php echo $this->Html->link(__('List Points'), array('controller' => 'points', 'action' => 'index')); ?> </li>
		<li><?php echo $this->Html->link(__('New Point'), array('controller' => 'points', 'action' => 'add')); ?> </li>
		<li><?php echo $this->Html->link(__('List Cities'), array('controller' => 'cities', 'action' => 'index')); ?> </li>
		<li><?php echo $this->Html->link(__('New City'), array('controller' => 'cities', 'action' => 'add')); ?> </li>
	</ul>
</div>
	<div class="related">
		<h3><?php echo __('Related Zones'); ?></h3>
	<?php if (!empty($zone['Zone'])): ?>
		<dl>
			<dt><?php echo __('Id'); ?></dt>
		<dd>
	<?php echo $zone['Zone']['id']; ?>
&nbsp;</dd>
		<dt><?php echo __('Name'); ?></dt>
		<dd>
	<?php echo $zone['Zone']['name']; ?>
&nbsp;</dd>
		<dt><?php echo __('Region Id'); ?></dt>
		<dd>
	<?php echo $zone['Zone']['region_id']; ?>
&nbsp;</dd>
		<dt><?php echo __('Zone Id'); ?></dt>
		<dd>
	<?php echo $zone['Zone']['zone_id']; ?>
&nbsp;</dd>
		<dt><?php echo __('Center Latitude'); ?></dt>
		<dd>
	<?php echo $zone['Zone']['center_latitude']; ?>
&nbsp;</dd>
		<dt><?php echo __('Center Longitude'); ?></dt>
		<dd>
	<?php echo $zone['Zone']['center_longitude']; ?>
&nbsp;</dd>
		<dt><?php echo __('Nb Visits'); ?></dt>
		<dd>
	<?php echo $zone['Zone']['nb_visits']; ?>
&nbsp;</dd>
		<dt><?php echo __('Created'); ?></dt>
		<dd>
	<?php echo $zone['Zone']['created']; ?>
&nbsp;</dd>
		<dt><?php echo __('Modified'); ?></dt>
		<dd>
	<?php echo $zone['Zone']['modified']; ?>
&nbsp;</dd>
		<dt><?php echo __('Types Zone Id'); ?></dt>
		<dd>
	<?php echo $zone['Zone']['types_zone_id']; ?>
&nbsp;</dd>
		</dl>
	<?php endif; ?>
		<div class="actions">
			<ul>
				<li><?php echo $this->Html->link(__('Edit Zone'), array('controller' => 'zones', 'action' => 'edit', $zone['Zone']['id'])); ?></li>
			</ul>
		</div>
	</div>
	<div class="related">
	<h3><?php echo __('Related Points'); ?></h3>
	<?php if (!empty($zone['Point'])): ?>
	<table cellpadding = "0" cellspacing = "0">
	<tr>
		<th><?php echo __('Id'); ?></th>
		<th><?php echo __('Name'); ?></th>
		<th><?php echo __('Point Category Id'); ?></th>
		<th><?php echo __('Zone Id'); ?></th>
		<th><?php echo __('Latitude'); ?></th>
		<th><?php echo __('Longitude'); ?></th>
		<th><?php echo __('Nbvisits'); ?></th>
		<th><?php echo __('Created'); ?></th>
		<th><?php echo __('Modified'); ?></th>
		<th class="actions"><?php echo __('Actions'); ?></th>
	</tr>
	<?php foreach ($zone['Point'] as $point): ?>
		<tr>
			<td><?php echo $point['id']; ?></td>
			<td><?php echo $point['name']; ?></td>
			<td><?php echo $point['point_category_id']; ?></td>
			<td><?php echo $point['zone_id']; ?></td>
			<td><?php echo $point['latitude']; ?></td>
			<td><?php echo $point['longitude']; ?></td>
			<td><?php echo $point['nbvisits']; ?></td>
			<td><?php echo $point['created']; ?></td>
			<td><?php echo $point['modified']; ?></td>
			<td class="actions">
				<?php echo $this->Html->link(__('View'), array('controller' => 'points', 'action' => 'view', $point['id'])); ?>
				<?php echo $this->Html->link(__('Edit'), array('controller' => 'points', 'action' => 'edit', $point['id'])); ?>
				<?php echo $this->Form->postLink(__('Delete'), array('controller' => 'points', 'action' => 'delete', $point['id']), null, __('Are you sure you want to delete # %s?', $point['id'])); ?>
			</td>
		</tr>
	<?php endforeach; ?>
	</table>
<?php endif; ?>

	<div class="actions">
		<ul>
			<li><?php echo $this->Html->link(__('New Point'), array('controller' => 'points', 'action' => 'add')); ?> </li>
		</ul>
	</div>
</div>
<div class="related">
	<h3><?php echo __('Related Cities'); ?></h3>
	<?php if (!empty($zone['City'])): ?>
	<table cellpadding = "0" cellspacing = "0">
	<tr>
		<th><?php echo __('Id'); ?></th>
		<th><?php echo __('Name'); ?></th>
		<th><?php echo __('Photo Path'); ?></th>
		<th><?php echo __('Region Id'); ?></th>
		<th><?php echo __('Center Latitude'); ?></th>
		<th><?php echo __('Center Longitude'); ?></th>
		<th><?php echo __('Nb Visits'); ?></th>
		<th><?php echo __('Created'); ?></th>
		<th><?php echo __('Modified'); ?></th>
		<th class="actions"><?php echo __('Actions'); ?></th>
	</tr>
	<?php foreach ($zone['City'] as $city): ?>
		<tr>
			<td><?php echo $city['id']; ?></td>
			<td><?php echo $city['name']; ?></td>
			<td><?php echo $city['photo_path']; ?></td>
			<td><?php echo $city['region_id']; ?></td>
			<td><?php echo $city['center_latitude']; ?></td>
			<td><?php echo $city['center_longitude']; ?></td>
			<td><?php echo $city['nb_visits']; ?></td>
			<td><?php echo $city['created']; ?></td>
			<td><?php echo $city['modified']; ?></td>
			<td class="actions">
				<?php echo $this->Html->link(__('View'), array('controller' => 'cities', 'action' => 'view', $city['id'])); ?>
				<?php echo $this->Html->link(__('Edit'), array('controller' => 'cities', 'action' => 'edit', $city['id'])); ?>
				<?php echo $this->Form->postLink(__('Delete'), array('controller' => 'cities', 'action' => 'delete', $city['id']), null, __('Are you sure you want to delete # %s?', $city['id'])); ?>
			</td>
		</tr>
	<?php endforeach; ?>
	</table>
<?php endif; ?>

	<div class="actions">
		<ul>
			<li><?php echo $this->Html->link(__('New City'), array('controller' => 'cities', 'action' => 'add')); ?> </li>
		</ul>
	</div>
</div>
